package ArrayList;


import java.util.ArrayList;
import java.util.List;

public class Main {

    public static void main(String[] args) {
        System.out.println("Hello World!");

        Array<Integer> array = new Array<>();
        for (int i=2;i<20;i++){
            array.addLast(i);
        }

        System.out.println(array);

        for(int i=1;i<10;i++){
           array.removeByIndex(i);
        }

        List<Integer> list = new ArrayList<>();

        array.removeByIndex(2);
        array.addByIndex(2,6);

        System.out.println(array);
    }
}
